using System;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Dao
{
    public class TableUnionFightRankRewardDao:DaoBase<TableUnionFightRankReward>
    {
        public override void AddPrimaryIndex(TableUnionFightRankReward model)
        {
            cachePrimary[model.id.ToString()] = model;
        }

        public override string GetFileName()
        {
            return "TableUnionFightRankReward.txt";
        }

        protected override TableUnionFightRankReward ParseRowData(string[] rowData)
        {
            TableUnionFightRankReward data = new TableUnionFightRankReward();
			data.id = rowData [0];

            if (string.IsNullOrEmpty(rowData[1]))
            {
                data.type = 0;
            }
            else
            {
                data.type = int.Parse(rowData[1]);
            }
			data.rank = rowData [2];
			data.reward = rowData [3];

            return data;
        }



    }

}
